package cn.edu.scau.cmi.zhuangzhihong.composite.safe;

public class Leaf implements Component {

	private String name;
	public Leaf(String name) {
		this.name=name;
	}
	@Override
	public StringBuilder printStruct(String struct) {
		// TODO 自动生成的方法存根
		StringBuilder sd = new StringBuilder();
		sd.append(struct+"-"+name+"\n");
         return sd;
	}
	

}
